import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/material.dart';

class SetPasswordBySmsState implements Cloneable<SetPasswordBySmsState> {
  TextEditingController passwordController = TextEditingController();
  TextEditingController codeController = TextEditingController();
  bool isLoading = false;
  int remainSeconds = 0;
  String smsId;
  String phone;

  @override
  SetPasswordBySmsState clone() {
    return SetPasswordBySmsState()
      ..passwordController = passwordController
      ..codeController = codeController
      ..isLoading = isLoading
      ..remainSeconds = remainSeconds
      ..smsId = smsId
      ..phone = phone;
  }
}

SetPasswordBySmsState initState(String phone) {
  return SetPasswordBySmsState()..phone = phone;
}
